package com.zxd.entity.vo;

import com.zxd.core.Constant;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 基础数据操作类
 */
public class BaseVo {

    public BaseVo() {

    }

    public BaseVo(String errorMsg) {
        this.code = Constant.CHECK_STATUS_SUCCESS;
        this.msg = errorMsg;
    }

    private Integer code = Constant.CHECK_STATUS_DEFAULT;

    private String msg = "";

    private Integer count = Constant.CHECK_STATUS_DEFAULT;

    private List<Map<String, Object>> data = new ArrayList<>();

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<Map<String, Object>> getData() {
        return data;
    }

    public void setData(List<Map<String, Object>> data) {
        this.data = data;
    }
}
